CSS styles for the selection in a TextView.
authorPaolo Borelli <pborelli@gnome.org>
Sun, 9 Jan 2011 22:10:47 +0000 (23:10 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Mon, 10 Jan 2011 17:52:35 +0000 (18:52 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=639106

gtk/gtkcssprovider.c

index aba63afcff212822559de756c0805405aa605d59..d7e8259a74d6d29ec64364220e83b9b0c0c315c8 100644 (file)
@@ -3647,6 +3647,15 @@ gtk_css_provider_get_default (void)
         "  background-color: @base_color;\n"
         "  color: @text_color;\n"
         "}\n"
+        ".view:selected {\n"
+        "  background-color: shade (@bg_color, 0.9);\n"
+        "  color: @fg_color;\n"
+        "}\n"
+        "\n"
+        ".view:selected:focused {\n"
+        "  background-color: @selected_bg_color;\n"
+        "  color: @selected_fg_color;\n"
+        "}\n"
         "\n"
         "GtkTreeView > row {\n"
         "  background-color: @base_color;\n"